.hoverShadow(){
    transition:all .5s;
    &:hover{
        transform:translated3d(0,-3px,0);
        box-shadow:0 3px 8px rgba(0,0,0,0.2);
    }
}
.size {
    width: 100px;
    height: 100px;
}

.size2(@w) {
    width: @w;
    height: @w;
}

.box {
    .size2(200px);
    .hoverShadow ();
    background-color: red;
}